package com.zjitc.service.impl;

import com.zjitc.dao.CatDao;
import com.zjitc.model.Cat;
import com.zjitc.service.CartService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/21 16:04
 * @description:
 */
@Service
public class CartServiceImpl implements CartService{
  @Autowired
  CatDao catDao;

  @Override
  public void removeUsernameAndSell(int id) {
    catDao.removeUsernameAndSell(id);
    catDao.removeUsername(id);
  }

  @Override
  public List<Cat> orderList(String username) {
    return catDao.orderList(username);
  }
}
